﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/BootyBay.StoreAppMgmtCore.Models" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/BootyBay.StoreAppMgmtCore.Models" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="ArrayOfStoreAppMgmtTask">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="StoreAppMgmtTask" nillable="true" type="tns:StoreAppMgmtTask" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfStoreAppMgmtTask" nillable="true" type="tns:ArrayOfStoreAppMgmtTask" />
  <xs:complexType name="StoreAppMgmtTask">
    <xs:sequence>
      <xs:element minOccurs="0" name="AppInfoID" type="xs:int" />
      <xs:element minOccurs="0" name="AppPackageName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AppPublisherName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="AppVerInfoID" type="xs:int" />
      <xs:element minOccurs="0" name="AppVersion" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OptStatus" type="tns:AppOperationStatus" />
      <xs:element minOccurs="0" name="OptType" type="tns:AppOperationType" />
      <xs:element minOccurs="0" name="PackageCertLocationUrl" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PackageLocationUrl" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TaskID" type="ser:guid" />
      <xs:element minOccurs="0" name="TaskNote" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UserName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UtcTimeStamp" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="StoreAppMgmtTask" nillable="true" type="tns:StoreAppMgmtTask" />
  <xs:simpleType name="AppOperationStatus">
    <xs:restriction base="xs:string">
      <xs:enumeration value="RequestSubmitted" />
      <xs:enumeration value="AgentReceived" />
      <xs:enumeration value="Succeeded" />
      <xs:enumeration value="Failed" />
      <xs:enumeration value="Unknown" />
      <xs:enumeration value="Unauthorized" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="AppOperationStatus" nillable="true" type="tns:AppOperationStatus" />
  <xs:simpleType name="AppOperationType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Install" />
      <xs:enumeration value="Update" />
      <xs:enumeration value="Uninstall" />
      <xs:enumeration value="GetLocalStatus" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="AppOperationType" nillable="true" type="tns:AppOperationType" />
  <xs:simpleType name="AppLocalStatus">
    <xs:restriction base="xs:string">
      <xs:enumeration value="InStore" />
      <xs:enumeration value="Purchased" />
      <xs:enumeration value="Installed" />
      <xs:enumeration value="OutDated" />
      <xs:enumeration value="Processing" />
      <xs:enumeration value="Unknown" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="AppLocalStatus" nillable="true" type="tns:AppLocalStatus" />
</xs:schema>